-- GENERATED SPELL FOR [Frozen Elemental] --


function spell0_25715(pUnit, Event) --@Ice Spike,n/a--
pUnit:FullCastSpellOnTarget(50094,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_25715', 2000, 1)
end

function Sorts_25715(pUnit, Event)
local choix_sorts_25715 = math.random(0, 0)
if choix_sorts_25715 == 0 then
pUnit:RegisterEvent('spell0_25715', 1, 1)
end
end

function mob25715_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_25715', math.random(1500, 3000), 1)
end

function mob25715_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob25715_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob25715_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(25715, 1, 'mob25715_Action')
RegisterUnitEvent(25715, 2, 'mob25715_Leave')
RegisterUnitEvent(25715, 3, 'mob25715_Kill')
RegisterUnitEvent(25715, 4, 'mob25715_Die')
